#define _CRT_SECURE_NO_WARNINGS 1
#include"Stack.h"

void Test1()
{
	ST s;
	STInit(&s);
	STPush(&s, 1);

	printf("%d ", STTop(&s));

	STPush(&s, 2);

	printf("%d ", STTop(&s));

	STPush(&s, 3);

	printf("%d ", STTop(&s));
	STPush(&s, 4);

	printf("%d ", STTop(&s));
	

	/*STPop(&s);
	printf("%d ", STTop(&s));*/
	printf("\n");
	while (!STEmpty(&s))
	{
		printf("%d ", STTop(&s));
		STPop(&s);
	}
	STDestroy(&s);

}
int main()
{
	Test1();
	return 0;
}